package com.zhongwang.mms.module.half.dao;

import com.zhongwang.mms.gen.entity.HProjectInventoryMark;
import com.zhongwang.mms.gen.entity.HProjectInventoryMarkExample;
import com.zhongwang.mms.module.half.model.HProjectInventoryMarkModel;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface HProjectInventoryMarkDao {
    long countByExample(HProjectInventoryMarkExample example);

    int deleteByExample(HProjectInventoryMarkExample example);

    int deleteByPrimaryKey(Integer pimId);

    int insert(HProjectInventoryMark record);

    int insertSelective(HProjectInventoryMark record);

    List<HProjectInventoryMark> selectByExample(HProjectInventoryMarkExample example);

    HProjectInventoryMark selectByPrimaryKey(Integer pimId);

    int updateByExampleSelective(@Param("record") HProjectInventoryMark record, @Param("example") HProjectInventoryMarkExample example);

    int updateByExample(@Param("record") HProjectInventoryMark record, @Param("example") HProjectInventoryMarkExample example);

    int updateByPrimaryKeySelective(HProjectInventoryMark record);

    int updateByPrimaryKey(HProjectInventoryMark record);

    /**项目划库存申请页面申请数据*/
    List<HProjectInventoryMarkModel> selectAllByQuery(HProjectInventoryMarkModel query);

    /**获取标记信息*/
    HProjectInventoryMarkModel selectProInvByPrimaryKey(Integer pimId);

    /**批量删除*/
    int deleteByPrimaryKeys(HProjectInventoryMarkModel hProjectInventoryMarkModel);

    /**根据主键们获取项目划库存申请列表*/
    List<HProjectInventoryMarkModel> findPimAppStatusByPrimaryKeys(String pimIds);

    /**根据ID修改状态*/
    int updatePimAppStatusByPrimaryKeys(HProjectInventoryMarkModel hProjectInventoryMarkModel);

    /**项目划库存申请列表*/
    List<HProjectInventoryMarkModel> selectAllApplyByQuery(HProjectInventoryMarkModel query);
}